\name{getPCdata}
\alias{getPCdata}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Retrieve PRBO point count data }
\description{
  Retrieve point count data from either the PRBOdb or BMDE database format
}
\usage{
getPCdata(project, station = "ALL", species="ALL", min.date, max.date, all.data = TRUE, database = "PRBOdb", ...)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{project}{ Project code. Currently this is only used to indicate the correct database to query from PRBOdb server }
  \item{station}{ A vector of station codes (aka PointCountStationID within PRBOdb), or ALL.  Default=ALL }
  \item{species}{ A vector of the 4 character AOU species codes, Default=ALL  }
  \item{min.date}{ Minimum date filter for PC data - of type date - not implemented yet }
  \item{max.date}{ Minimum date filter for PC data - of type date - not implemented yet }
  \item{all.data}{ Boolean for all data - not implemented yet }
  \item{database}{ Character field to determine which database to use.  Currently support 'digir' and 'PRBOdb'  }
  \item{\dots}{ Additional fields for internal calls to other functions }
}
\details{
  ~~ If necessary, more details than the description above ~~
}
\value{
 A dataframe of PRBO point count data (in future this will be of "type" point count which will be a subclass of dataframe including mean, variance, sample size and standard error
}
\references{ http://www.prbo.org/cadc/tools/pc }
\author{ Mark Herzog \email{mherzog@prbo.org} }

\examples{

# Note: You must have your MySQL configured correctly to access databases within data.prbo.org
# Ask \email{mherzog@prbo.org} for more information
#
# Retrieve all data from stations "PALO" (Palomarin) and "RECR" 
# (Redwood Creek) using DBI connection to the 'digir-ro' database
\dontrun{pcdata<-getPCdata(database='digir-ro',station=c("PALO","RECR"))}
}
% R documentation directory.
\keyword{ data }
